package com.songcan.gateway.route.service;

import com.songcan.gateway.exception.ValidatedExceotion;
import com.songcan.gateway.vo.CustomRouteDefinitionVO;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.Map;

public interface CustomRouteDefinitionService {

    Map<String,CustomRouteDefinitionVO> findAll();

    String loadRouteDefinition();

    CustomRouteDefinitionVO save(CustomRouteDefinitionVO customRouteDefinition);

    void deleteById(String id);

    void update(String id, String uri, String predicates, String filters,Integer order, Integer enabled) throws ValidatedExceotion;

    CustomRouteDefinitionVO existsById(String id);


}
